#ifndef NOTIFYWINDOW_H
#define NOTIFYWINDOW_H

#include <QWidget>
#include <QList>
#include "Event.h"

namespace Ui {
    class NotifyWindow;
}

class NotifyWindow : public QWidget
{
    Q_OBJECT

public:
    explicit NotifyWindow(QWidget *parent = 0);
    ~NotifyWindow();

    void addEvent(const Event &event);

protected:
    void closeEvent(QCloseEvent *event);

private:
    void updateControls();
    void drawEvent(const Event *event);

    Ui::NotifyWindow *ui;
    QList<Event> m_eventList;
    const Event *currentEvent;

private slots:
    void dropEvent();
    void prevEvent();
    void nextEvent();
};

#endif // NOTIFYWINDOW_H
